import { baseRequest } from '@/utils/request'
import { log } from '@antv/g2plot/lib/utils'

const request = (url, ...arg) => baseRequest(`/tjzy/complaint/` + url, ...arg)
export default {
	complaintPage(data) {
		return request('pageList', data, 'post')
	},
	checkComplaintUser(idCard) {
		return request('checkComplaintUser?idCardList=' + idCard, '', 'get')
	},
	// 提交投诉信息表单 edit为true时为编辑，默认为新增
	complaintSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},

	complaintDelete(data) {
		return request('delete', data)
	},
	blackoutCustomers(data) {
		return request('blackoutCustomers', data, 'post')
	},
	importExcel(data){
		return request('importExcel', data)
	}
}
